import Mock from "mockjs";

Mock.mock("/api/banner", "get", {
  code: 0,
  msg: "", //code不为0的就会显示msg
  data: [
    {
      id: "1",
      midImg: "https://gitee.com/zhongjunying/my-site/raw/master/public/staic/banner_1_min.jpg",
      bigImg: "https://gitee.com/zhongjunying/my-site/raw/master/public/staic/banner_1.jpg",
      title: "爱学习的forrest",
      description: "博学笃行，与时俱进",
    },
    {
      id: "2",
      midImg: "https://gitee.com/zhongjunying/my-site/raw/master/public/staic/banner_2_min.jpg",
      bigImg: "https://gitee.com/zhongjunying/my-site/raw/master/public/staic/banner_2.jpg",
      title: "当你感到疲惫时",
      description: "坚持一下，成功就在不远处",
    },
    {
      id: "3",
      midImg: "https://gitee.com/zhongjunying/my-site/raw/master/public/staic/banner_3_min.jpg",
      bigImg: "https://gitee.com/zhongjunying/my-site/raw/master/public/staic/banner_3.jpg",
      title: "困难是成长的阶梯",
      description: "勇敢面对，你会变得更强大",
    },
  ],
});
